import Mock from 'mockjs'
import homeApi from './mockData/home'
import userApi from './mockData/user'
import permissionApi from './mockData/permission'
import article from './mockData/article'
//拦截请求
Mock.mock('/home/getData',homeApi.getHomeData)

//本地获取user的数据
Mock.mock(/user\/getUser/,'get',userApi.getUserList)

//添加user数据
Mock.mock(/user\/addUser/,'post',userApi.createUser)

//编辑user数据
Mock.mock(/user\/editUser/,'post',userApi.updateUser)

//删除user数据
Mock.mock(/user\/deleteUser/,'post',userApi.deleteUser)

//通过用户名分配不同菜单列
Mock.mock(/permission\/getMenu/,'post',permissionApi.getMenu)

//获取所有博客内容
// Mock.mock(/article\/getBlog/,'get',article.getBlogList)
